package com.hf.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hf.entity.RoleModules;
import com.hf.mapper.RoleModulesMapper;
import com.hf.service.IRoleModulesService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author eight
 * @since 2021-06-06
 */
@Service
public class RoleModulesServiceImpl extends ServiceImpl<RoleModulesMapper, RoleModules> implements IRoleModulesService {
	@Autowired
	RoleModulesMapper roleModulesMapper;

	@Override
	public boolean deleteByRoleIdAndModuleId(Integer roleId, String mids) {
		// TODO Auto-generated method stub
		String[] s = mids.split(",");
		return roleModulesMapper.deleteByRoleIdAndModuleId(roleId, s);
	}
}
